import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        System.out.println("请输入一个6位数字");
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        String result1 = method1(num);
        String result2 = method2(result1);
        String result3 = method3(result2);
        System.out.println(result3);
    }
    public static String method1(int num){
        String[] arr = { "零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖" };
        String result = "";
        while(num > 0){
            result = arr[num % 10] + result;
            num = num / 10;
        }
        return result;
    }
    public static String method2(String result1){
        String result2 = result1;
        for(int i = result1.length();i < 6;i++){
            result2 = "零" + result2;
        }
        return result2;
    }
    public static String method3(String result2){
        String result3 = "";
        String[] arr = {"拾万", "万", "千", "百", "十", ""};
        for(int i = 0;i <result2.length();i++){
            result3 = result3 + result2.charAt(i) + arr[i];
        }
        return result3;
    }
}